package com.travel.JPA;

import com.travel.Bean.RecordType;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface RecordTypeJPA extends JpaRepository<RecordType, Integer> {

    @Query("select discount from recordtype where record_type = ?1")
    Integer findByRecord_type(Integer type);
}
